package com.whli.autumn.mall.wms.service;

import com.whli.autumn.core.extend.service.IBaseService;
import com.whli.autumn.mall.wms.domain.dto.warehouselocation.WarehouseLocationQueryDTO;
import com.whli.autumn.mall.wms.domain.entity.WarehouseLocation;
import com.whli.autumn.mall.wms.domain.vo.warehouselocation.WarehouseLocationVO;

import java.util.List;

/**
 * <p>库位信息业务</p>
 *
 * @author whli
 * @version 1.0.0
 * @since 2023-04-09 08:37
 */
public interface IWarehouseLocationService extends IBaseService<WarehouseLocation> {

    /**
     * <p>查询所有启用的库位信息</p>
     *
     * @author whli
     * @since 2023/4/30 21:30
     * @param entity 查询参数
     * @return
     */
    List<WarehouseLocationVO> listWarehouseLocation(WarehouseLocationQueryDTO entity);

    /**
     * <p>启用库位信息</p>
     *
     * @author whli
     * @since 2023/4/30 21:30
     * @param id 主键
     * @return
     */
    boolean enable(String id);

    /**
     * <p>禁用库位信息</p>
     *
     * @author whli
     * @since 2023/4/30 21:30
     * @param id 主键
     * @return
     */
    boolean disable(String id);

}
